//
//  HTDeliverPlaceChoiceView.h
//  TruckUser
//
//  Created by Ting Han on 2017/10/27.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HTAreaModel.h"

typedef enum : NSUInteger {
    HTDeliverPlaceChoiceTypeStart,//出发地
    HTDeliverPlaceChoiceTypeDestination,//目的地
} HTDeliverPlaceChoiceType;

@protocol HTDeliverPlaceChoiceViewDelegte <NSObject>
@optional

- (void)didChoiceItemWithAreaModel:(HTAreaModel *)areaModel currentIndex:(NSInteger)currentIndex deliverType:(HTDeliverPlaceChoiceType)deliverType;

- (void)didChoiceItemWithHistory:(HTAreaModel *)areaModel deliverType:(HTDeliverPlaceChoiceType)deliverType;


@end

@interface HTDeliverPlaceChoiceView : UIView

@property (nonatomic,assign) HTDeliverPlaceChoiceType deliverPlaceChoiceType;

@property (nonatomic,weak) id<HTDeliverPlaceChoiceViewDelegte>delegate;

//省 = 0，市 = 1，区 = 2，默认0
@property (nonatomic,assign) NSInteger selectedTabIndex;


-(void)showView;

@end
